<?php
class modules_default_forms_ForgotForm extends Zend_Form
{
	public function init()
    {
    	$oEmailElement = new Zend_Form_Element_Text('email');
		$oEmailElement->setRequired(true)
		              ->addFilter(new Zend_Filter_StringTrim())
		              ->addValidator(new Zend_Validate_StringLength(0, 255))
		              ->addValidator(new Zend_Validate_EmailAddress())
					  ->addValidator( new Zend_Validate_Db_RecordExists('user','email'));
		$this->addElement($oEmailElement);
    }
}